package com.wyvoid.forum.dao;

import com.wyvoid.core.persistent.Pagination;
import com.wyvoid.core.persistent.hibernate.IHibernateDAO;
import com.wyvoid.core.persistent.hibernate.HibernatePage;
import com.wyvoid.forum.domain.Attachment;

/**
 * 帮助模块数据处理接口
 *
 * @author wyvoid
 * @link www.wyvoid.com
 */
public interface IAttachmentDAO extends IHibernateDAO<Attachment> {

    /**
     * 取得制定用户的附件列表
     *
     * @param userId     用户编号
     * @param filetype   文件类型
     * @param pagination 分页对象
     * @return QueryResult 论坛贴子列表
     */
    public HibernatePage<Attachment> findAttachments(int userId, String filetype, Pagination pagination);

}
